/**
 * 类的功能层次结构
 */
public class CountDisplay extends Display {

    public CountDisplay(DisplayImpl displayImpl){
        super(displayImpl);
    }

    public void multiPrint(int count){
        open();
        for(int i = 0; i < count ; i++){
            print();
        }
        close();
    }

}
